package cn.zqy.demo.day05;

public class Demo04ArrayError {
    public static void main(String[] args) {
        int[] arrA = {1,2};

        // NullPointerException 空指针异常
       /* arrA = null;
        System.out.println(arrA[0]);*/

        int[] arrB = { 1,2,23 };
        // .ArrayIndexOutOfBoundsException: 4 数组索引超过边界
        // System.out.println(arrB[4]);
    }
}
